Attached patch disables pci_vtd_quirk for 32-bit Xen since 32-bit xen
does not support MMCFG access.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
*/
void pci_vtd_quirk(struct pci_dev *pdev)
{
+#ifdef CONFIG_X86_64
int bus = pdev->bus;
int dev = PCI_SLOT(pdev->devfn);
int func = PCI_FUNC(pdev->devfn);
val = pci_conf_read32(bus, dev, func, 0x1AC);
pci_conf_write32(bus, dev, func, 0x1AC, val | (1 << 31));
}
+#endif
}